import React from 'react';
import { observer } from 'mobx-react-lite';
import loginStore from '@/store/login';

const UsernameItem = observer(() => {
    return (
        <div className='home-form-item'>
            <span>姓名：</span>
            <input
                type='text'
                placeholder='请输入姓名'
                value={loginStore.username}
                onChange={(e) => loginStore.setUsername(e.target.value)}
            />
        </div>
    );
});

export default UsernameItem;
